package com.time.auth.infra.basic.service.impl;

import com.time.auth.infra.basic.entity.AuthAdminUser;
import com.time.auth.infra.basic.mapper.AuthAdminUserDao;
import com.time.auth.infra.basic.service.AuthAdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 管理员用户服务实现类
 *
 * @author: HuangQi
 * @date: Created in 11:28 2025/9/25
 * @description: 管理员用户服务实现类
 */
@Service("authAdminUserService")
public class AuthAdminUserServiceImpl implements AuthAdminUserService {

    @Autowired
    private AuthAdminUserDao authAdminUserDao;

    @Override
    public AuthAdminUser queryByUserName(String userName) {
        return this.authAdminUserDao.queryByUserName(userName);
    }

    @Override
    public Integer insert(AuthAdminUser authAdminUser) {
        return this.authAdminUserDao.insert(authAdminUser);
    }

    @Override
    public Integer updateByUserName(AuthAdminUser authAdminUser) {
        return this.authAdminUserDao.updateByUserName(authAdminUser);
    }

    @Override
    public List<AuthAdminUser> queryByCondition(AuthAdminUser authAdminUser) {
        return this.authAdminUserDao.queryAllByLimit(authAdminUser);
    }

    @Override
    public Integer update(AuthAdminUser authAdminUser) {
        return this.authAdminUserDao.update(authAdminUser);
    }
}
